<%@ page language="java" contentType="application/xhtml+xml; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="u" tagdir="/WEB-INF/tags" %>
<u:html-top title="Protocols"/>

<c:if test="${userHasWritePrivileges }">
<div><a href="create">Add a new Protocol</a></div>
</c:if>

<table class="entityList">
	<thead>
		<tr>
			<th>Title</th>
			<th>Type</th>
			<th>Creator</th>
			<th>Creation</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="protocol" items="${protocols}">
			<tr>
				<td>
					<u:protocol-href protocol="${protocol}"/>
				</td>
				<td>
					<c:out value="${protocol.type}" escapeXml="true"/>
				</td>
				<td>
					<u:user-href user="${protocol.createdBy}"/>
				</td>
				<td>
					<c:out value="${protocol.creation}" escapeXml="true"/>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<u:html-bottom/>